﻿namespace hedefgrup.reports.renault.definitions
{
    using System;
    using System.Collections.Generic;
    using System.Xml;

    public class reportDefinition : xmlNodeBasedClass
    {
        public List<reportRowDefinition> rowDefinitions;

        public reportDefinition(XmlNode sourceNode) : base(sourceNode)
        {
            this.rowDefinitions = new List<reportRowDefinition>();
            foreach (XmlNode node in sourceNode.ChildNodes)
            {
                this.rowDefinitions.Add(new reportRowDefinition(node));
            }
        }

        public string getReportType()
        {
            return base.getAttributeByName("type");
        }
    }
}

